<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="${staticServer}/inc/style/main.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/page.css" />
<link rel="stylesheet" href="${staticServer}/work_today.css" />
<link rel="stylesheet" href="${staticServer}/consultant_client_tracking.css" />
<script src="${staticServer}/inc/js/jquery.js"></script>
<script src="${staticServer}/inc/js/pageset.js"></script>
<script src="${staticServer}/inc/js/model_resp.js"></script>
<script src="${staticServer}/inc/js/submitter.js"></script>
<script src="${staticServer}/inc/js/tips.js"></script>
<script src="${staticServer}/consultant_client_tracking_list.js?1.5"></script>
<script>
//var infopad = parent.infopad;
$("body").ready(function(){
	$("#condition").focus();
	$("#condition").bind("keyup",function(e){
		if( e.which == 13 )
		{
			starquery(0);
		}
	});

	$("#btnInvalid").change(setInvalid);
});

function starquery(type)
{
	if(type==0)
	{
		var key = $("#condition").val();
		var url_ps = param( location.href );
		var params = [];
		if(!empty(key)) params.push( "key=" + key );
		if(!empty(url_ps.invalid)) params.push( "invalid=" + url_ps.invalid );
		if(!empty(url_ps.state)) params.push( "state=" + url_ps.state );
	
		location.href = "?" + params.join("&");
	}
	else
	{
		location.href = "?";
	}
}

function setInvalid(){
	var invalid = $("#btnInvalid").prop("checked")?1:0;
	var ps = param(location.href);
	var param_str = "";

	if(!empty(ps.key)) param_str += "&key=" + ps.key;
	if(!empty(ps.page)) param_str += "&page=" + ps.page;
	if(!empty(ps.state)) param_str += "&state=" + ps.state;
	param_str += "&invalid="+invalid;
	location.href = "?" + param_str;
}
</script>
</head>

<body>
	<div id="home_link">
		<ul>
			<li></li>
			<li>&gt;</li>
			<li>咨询师模块</li>
			<li>&gt;</li>
			<li class="current"></li>
		</ul>
	</div>
	<div id="caption">
		<ul>
			<li><span class="title">操作提示：</span></li>
			<li>点击“最后状态”列表中的某一项，可以筛选出包含此状态的跟踪记录</li>
			<li style="background: #DFDFFF; padding: 2px 20px 2px 20px;">已预约</li>
			<li style="background: #D8FFB2; padding: 2px 20px 2px 20px;">已测评</li>
			<li style="background: #B5FCB5; padding: 2px 20px 2px 20px;">已缴费</li>
		</ul>
	</div>
	<div id="container">
		<div id="title"></div>
		<table class="form_table">
			<tr>
				<td><label><b>查询条件：</b></label><input type="text" name="condition" id="condition" size="50"
					value="" placeholder="姓名/学员名/渠道/类别/电话/邮箱/QQ/地区" /> <label for="btnInvalid"><input
						type="checkbox" id="btnInvalid" style="margin-top: 6px;" />过滤无效客户</label> <label>&nbsp;</label><input
					type="button" value=" 查 询 " onclick="starquery(0)" /><input type="button" value=" 重 置 " onclick="starquery(1)" /><em
					class="caption">（按回车快速查询）</em></td>
			</tr>
		</table>
		<table id="tbl_tracking" rel="nohover">
			<tr class="fields">
				<th>客户姓名</th>
				<th>学员</th>
				<th>负责人</th>
				<th>所在地</th>
				<th>渠道</th>
				<th>类别</th>
				<th>联系方式</th>
				<th>跟踪次数</th>
				<th>最后跟踪</th>
				<th>备注信息</th>
				<th width="100">最后状态</th>
				<th>操作</th>
			</tr>
			
			<tr rel="state_special" style="background-color: rgb(223, 223, 255);">
				<td align="center" class="stress" style="border: 1px solid rgb(249, 249, 249);">冯女士<em class="valid">（有效）</em></td>
				<td style="border: 1px solid rgb(249, 249, 249);"><span class="caption">(8岁)</span></td>
				<td align="center" style="border: 1px solid rgb(249, 249, 249);">何梅</td>
				<td align="center" style="border: 1px solid rgb(249, 249, 249);">浙江-杭州</td>
				<td align="center" style="border: 1px solid rgb(249, 249, 249);">400电话</td>
				<td align="center" style="border: 1px solid rgb(249, 249, 249);">学员客户</td>
				<td align="center" style="border: 1px solid rgb(249, 249, 249);"><a title="" id="zukaoapz3rkm"><em class="caption">电话：</em>15857133556</a></td>
				<td align="center" style="border: 1px solid rgb(249, 249, 249);">1 次</td>
				<td width="150" title="" id="809pwe10gp7z" style="border: 1px solid rgb(249, 249, 249);">无<br><span class="caption">2016-07-08 13:10</span></td>
				<td class="breakall" width="120" style="border: 1px solid rgb(249, 249, 249);"><div contenteditable="true" rel="MODIFY::3ac1c56612c3a6874cadd5550a5568c777b9fa71"></div></td>
				<td align="center" rel="statelist" style="border: 1px solid rgb(249, 249, 249);"><p style="margin:2px 0 2px;"><a class="stateitem" rel="mldqhlrg1sad">已预约</a></p></td>
				<td align="center" style="border: 1px solid rgb(249, 249, 249);"><a href="consultant_client_tracking.html">跟踪</a> - <a class="btnSearchTracking" rel="3ac1c56612c3a6874cadd5550a5568c777b9fa71">历史跟踪</a> - <a href="consultant_client_view.html">详细信息</a></td>
			</tr>
            <tr rel="data_row" class="even_row">
				<td align="center" class="stress">方妈妈<em class="valid">（有效）</em></td>
				<td>马一鸣<span class="caption">(10岁)</span></td>
				<td align="center">何梅</td>
				<td align="center">浙江-杭州</td>
				<td align="center">网站问卷</td>
				<td align="center">学员客户</td>
				<td align="center"><a title="" id="maq80exxjfn6"><em class="caption">电话：</em>13857148080</a></td>
				<td align="center">2 次</td>
				<td width="150" title="&nbsp;">&nbsp;<br><span class="caption">2016-07-03 16:22</span></td>
				<td class="breakall" width="120"><div contenteditable="true" rel="MODIFY::40195b5e31ba6e208d3a877a377766751c3c50cf"></div></td>
				<td align="center" rel="statelist"><p style="margin:2px 0 2px;"><a class="stateitem" rel="138g5wfwm1mx">计划跟踪</a></p></td>
				<td align="center"><a href="consultant_client_tracking.html">跟踪</a> - <a class="btnSearchTracking" rel="40195b5e31ba6e208d3a877a377766751c3c50cf">历史跟踪</a> - <a href="consultant_client_view.html">详细信息</a></td>
			</tr>
			
		</table>
	</div>

	<div id="pager" style="width: 820px;"><ul id="pagination"><li class="first-off">首页</li><li class="previous-off">上一页</li><li class="current">1</li><li><a href="?page=2">2</a></li><li class="next"><a href="?page=2">下一页</a></li><li class="end"><a href="?page=2">尾页</a></li><li><input type="text" id="btn_page_jump" size="10" style="height:25px;line-height:25px;" placeholder="跳转页数" onkeyup="if(window.event.which==13){var us=param(location.href);var ua=[];us['page']=parseInt(this.value);for(var n in us){ua.push(n+'='+us[n])}location.href='?'+ua.join('&amp;');}"></li><li class="pageinfo">1/2，共20条记录</li></ul></div>
	<div class="emptyline"></div>
</body>
</html>